<?php
$emails = $this->data;
?>

<div class="content-box">

    <div class="content-box-header">
        <h3>Imported email adresses</h3>
        <ul class="content-box-tabs">
            <li><a class="default-tab" href="#tab1">Table</a></li>
        </ul>
        <div class="clear"></div>
    </div>
    <div class="content-box-content">
        <form action="/admin/delivery/save" method="post">
            <div class="tab-content default-tab" id="tab1">
                <div class="row">
                    <div class="span3">
                        <table class="table table-striped">
                            <?php foreach ($emails as $email): ?>
                            <tr>
                                <td><input type="checkbox" name="email[]" value="<?php echo $email ?>"
                                           checked="checked">
                                </td>
                                <td><?php echo $email ?></td>
                            </tr>
                            <?php endforeach; ?>
                        </table>
                        <input type="submit" value="Save" class="btn btn-primary">
                    </div>
                </div>
        </form>

    </div>
</div>
</div>